//
//  MyManager.h
//  NZTaxi
//
//  Created by rix on 12/24/10.
//  Copyright 2010 List-it. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Address.h"

@interface MyManager : NSObject {	
	NSString *listItDomain;
	NSString *webServicePath;
	NSString *requestJobAPI;
	NSString *registerCustomerDeviceAPI;
    
	NSString *deviceUDID;
	NSString *customerPickupAddress;
	NSString *customerDestinationAddress;
    NSString *specialInstructions;
    
    NSString *customerName;
    NSString *customerMobileNo;
    BOOL isCustomerRegistered;
    
    Address *customerPickupAddressObj;
    Address *customerDestinationAddressObj;
}

// web service
@property (nonatomic, retain) NSString *listItDomain;
@property (nonatomic, retain) NSString *webServicePath;
@property (nonatomic, retain) NSString *requestJobAPI;
@property (nonatomic, retain) NSString *registerCustomerDeviceAPI;

// booking
@property (nonatomic, retain) NSString *deviceUDID;
@property (nonatomic, retain) NSString *customerPickupAddress;
@property (nonatomic, retain) NSString *customerDestinationAddress;
@property (nonatomic, retain) Address *customerPickupAddressObj;
@property (nonatomic, retain) Address *customerDestinationAddressObj;
@property (nonatomic, retain) NSString *specialInstructions;

// account info
@property (nonatomic, retain) NSString *customerName;
@property (nonatomic, retain) NSString *customerMobileNo;
@property (nonatomic, assign) BOOL isCustomerRegistered;

- (NSString *) secretKey;
- (NSString *) encrypt: (NSString *)string;

// encrypted versions of web service parameters
- (NSString *) crypDeviceUDID;
- (NSString *) crypCustomerPickupAddress;
- (NSString *) crypCustomerDestinationAddress;
- (NSString *) crypCustomerName;
- (NSString *) crypCustomerMobileNo;

// static accessor method
+ (MyManager *) sharedMyManager;

@end
